package com.zzy.study.exception;

public class TestExecption {

	public static void main(String[] args)  {
		
		try {
			div(3, 1);
			return;
		} catch (BaseException e) {
			e.printStackTrace();
		}finally {
		}
	}
	
	private static void div(int x, int y) throws BaseException  {
		if(y == 0) {
			throw new BaseException("cc");
		}
		System.out.println(x / y);
	}

}
